package com.yzy.demo;

import java.util.ArrayList;

public class CPU {
   /* public static void main(String[] args) {
        Service service = new Service();
        //先到先服务
        service.init();
        ArrayList<Progress> list = service.FCFS();
            System.out.println("先到先服务的执行过程：");
            for(Progress p:list) {
            System.out.println(p);
        }

        //短作业优先
        service.init();
        list = service.SJF();
        System.out.println("短作业优先的执行过程：");
        for(Progress p:list) {
            System.out.println(p);
        }
    }*/
}
